﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _43继承
{
    class Jzhen : Fulei
    {
        public Jzhen(string name, int age,char gender,string hobby)
            :base(name,age,gender)
        {
            this.Hobby = hobby;
        } 

        public string _hobby;
        public string Hobby
        {
            get { return _hobby; }
            set { _hobby = value; }
        }
        public void Red()
        {
            Console.WriteLine("我叫{0}，我是一名狗仔，我的爱好是{1}，我是{2}生,我今年{3}岁了", this.Name, this.Hobby, this.Gender, this.Age);
        }
    }
}
